package cn.dust.design.pattern.creational.builder;

/**
 * @Author: dust
 * @Date: 2019/11/25 17:04
 */
public class Test {
    public static void main(String[] args) {
        FPXBoss fpxBoss=new FPXBoss();
        HeroBuilder heroBuilder=new HeroActualBuilder();
        fpxBoss.setHeroBuilder(heroBuilder);
        Hero hero=fpxBoss.makeHero("dust","猛龙摆尾","短剑重铸","巨龙撞击","利刃华尔兹");
        System.out.println(hero.toString());
    }
}
